#ifndef __SOCK_H
#define __SOCK_H

#include "cconf.h"

typedef struct cconf_sock_s cconf_sock_t;

enum {
	CCONF_SOCK_CLIENT=0,
	CCONF_SOCK_SERVER
};

cconf_sock_t * cconf_sock_create(char * name, int server_client);

void cconf_sock_destroy(cconf_sock_t * sock);
int cconf_sock_send_string(cconf_sock_t * sock, char * str);
int cconf_sock_send_string_nb(cconf_sock_t * sock, char * str);

char * cconf_sock_get_string(cconf_sock_t * sock);

#endif
